package behaviour.observer;

/**
 * @author yeyangtao created at 2020/7/7 14:39
 */
public class ObserverOne extends Observer {
    public ObserverOne(Subject subject) {
        this.subject = subject;
        subject.attach(this);
    }

    @Override
    public void update() {
        System.out.println("observer one updated");
    }
}
